-- GENERATED SPELL FOR [Kil'sorrow Ritualist] --


function spell0_18658(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(32063,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18658', 26000, 1)
end

function spell1_18658(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18658', 3000, 1)
end

function Sorts_18658(pUnit, Event)
local choix_sorts_18658 = math.random(0, 1)
if choix_sorts_18658 == 0 then
pUnit:RegisterEvent('spell0_18658', 1, 1)
end
if choix_sorts_18658 == 1 then
pUnit:RegisterEvent('spell1_18658', 1, 1)
end
end

function mob18658_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18658', math.random(1500, 3000), 1)
end

function mob18658_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18658_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18658_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18658, 1, 'mob18658_Action')
RegisterUnitEvent(18658, 2, 'mob18658_Leave')
RegisterUnitEvent(18658, 3, 'mob18658_Kill')
RegisterUnitEvent(18658, 4, 'mob18658_Die')
